package com.lantosec.hmrp.modules.archives.vo;

import java.time.LocalDateTime;
import java.util.Date;

import com.lantosec.hmrp.modules.archives.entity.UserTipOff;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 领导干部被举报控告情况表 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="UserTipOff对象", description="领导干部被举报控告情况表")
public class UserTipOffVO extends BaseVO<UserTipOff> {
    private static final long serialVersionUID = 1L;


    public UserTipOffVO(UserTipOff entity){
        this.userTipOffId = entity.getUserTipOffId();
        this.userId = entity.getUserId();
        this.tipOffDate = entity.getTipOffDate();
        this.tipOffUser = entity.getTipOffUser();
        this.tipOffType = entity.getTipOffType();
        this.tipOffEvent = entity.getTipOffEvent();
        this.disposeResult = entity.getDisposeResult();
        this.createId = entity.getCreateId();
        this.createUser = entity.getCreateUser();
        this.createTime = entity.getCreateTime();
        this.verifyId = entity.getVerifyId();
        this.verifyUser = entity.getVerifyUser();
        this.verifyTime = entity.getVerifyTime();
        this.verifyStatus = entity.getVerifyStatus();
    }

    @Override
    public UserTipOff convertToEntity(){
        return new UserTipOff(this);
    }


    @ApiModelProperty(value = "主键ID")
    private String userTipOffId;

    @ApiModelProperty(value = "用户主表ID")
    private String userId;

    @ApiModelProperty(value = "举报时间")
    private String tipOffDate;

    @ApiModelProperty(value = "举报者")
    private String tipOffUser;

    @ApiModelProperty(value = "举报方式")
    private String tipOffType;

    @ApiModelProperty(value = "举报控告事件")
    private String tipOffEvent;

    @ApiModelProperty(value = "处理结果")
    private String disposeResult;

    @ApiModelProperty(value = "创建人ID")
    private String createId;

    @ApiModelProperty(value = "创建人姓名")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "审核人ID")
    private String verifyId;

    @ApiModelProperty(value = "审核人姓名")
    private String verifyUser;

    @ApiModelProperty(value = "审核时间")
    private Date verifyTime;

    @ApiModelProperty(value = "审核状态（0：未审核，1：以审核）")
    private Integer verifyStatus;

    @ApiModelProperty(value = "审核通过状态")
    private Integer state;
}
